package ShopStyle.htc;

//import MTConFiducialDetector.cmlab.ntu.tw.MTView;
import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class ShopStyleActivity extends Activity {

    /** Called when the activity is first created. */
	private MagView myMagView; 
    @Override
    public void onCreate(Bundle savedInstanceState) {
        //super.onCreate(savedInstanceState);
        //setContentView(R.layout.main);
    	super.onCreate(savedInstanceState);
    	requestWindowFeature(Window.FEATURE_NO_TITLE);
    	getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    	
    	myMagView = new MagView(this);
    	setContentView( myMagView);
		//[To Allen/To Jimmy] All Items added here.
    	myMagView.setBackground ( "p3_bg" );
    	MagItem item0 = new MagItem( this , "p3_1", "FIT +4" , "Comment +3" , "FIT!!  NOT FIT!!");
    	item0.setParameters(54,0 , 255, 140);
    	item0.setAllenString( new String[]{"p3_1 pic" , "p3_1 fit list", "p3_1 comment list" , "p3_1 button"} );

    	MagItem item1 = new MagItem( this , "p3_2", "FIT +2" , "Comment +6" , "FIT!!  NOT FIT!!");
    	item1.setParameters(275,16,255, 140 );
    	item1.setAllenString( new String[]{"p3_2 pic" , "p3_2 fit list", "p3_2 comment list" , "p3_2 button"} );

    	MagItem item2 = new MagItem( this , "p3_3", "FIT +0" , "Comment +4" , "FIT!!  NOT FIT!!");
    	item2.setParameters(120, 183 , 255 , 155 );
    	item2.setAllenString( new String[]{"p3_3 pic" , "p3_3 fit list", "p3_3 comment list" , "p3_3 button"} );
    	
    	MagItem item3 = new MagItem( this , "p3_4", "FIT +3" , "Comment +0" , "FIT!!  NOT FIT!!");
    	item3.setParameters(38,320, 255 , 150 );
    	item3.setAllenString( new String[]{"p3_4 pic" , "p3_4 fit list", "p3_4 comment list" , "p3_4 button"} );
    	
    	MagItem item4 = new MagItem( this , "p3_5", "FIT +1" , "Comment +2" , "FIT!!  NOT FIT!!");
    	item4.setParameters( -15 , 477, 255, 260 );
    	item4.setAllenString( new String[]{"p3_5 pic" , "p3_5 fit list", "p3_5 comment list" , "p3_5 button"} );
    	
    	myMagView.addMagItem( item0 );
    	myMagView.addMagItem( item1 );
    	myMagView.addMagItem( item2 );
    	myMagView.addMagItem( item3 );
    	myMagView.addMagItem( item4 );
    	
    	//getApplicationContext();
    }
}